package com.fs.common.yzMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.common.pojo.Order;
import com.fs.common.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;


/**
 * @author DeveloperKK
 * @desc
 * @creationTime 2019-08-21 10:27
 * @projectName yuezi-menu
 * @packageName com.fs.common.yzMapper
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    Order findByOutTradeNo(@Param("orderNo")String orderNo);

    Page<OrderVo> findOrderAll(IPage page, @Param("map")Map map,@Param("userId") String userId);

}
